<template>
	<view></view>
</template>

<script>
export default {
	name: 'designOperate',
	props: {
		value: {
			type: String,
			default: ''
		},
		oper_item: {
			type: Object,
			default: {}
		}
	},
	watch: {
		value(val) {
			let that = this;
			switch (val) {
				// 上传设计图
				case 'design_img':
					uni.navigateTo({
						url: '/pagesC/designManagement/addDesignDrawing/addDesignDrawing?id=' + this.oper_item.id
					});
					this.close();
					break;
				// 更新设计图
				case 'projects_updDesignDrawings':
					uni.navigateTo({
						url: '/pagesC/designManagement/addDesignDrawing/addDesignDrawing?id=' + this.oper_item.id
					});
					this.close();
					break;
				default:
			}
		}
	},
	data() {
		return {};
	},
	methods: {
		close(type) {
			// switch (type) {
			// 	case 'design_changeDesigner':
			// 		this.changShow = false;
			// 		break;
			// 	default:
			// }
			this.$emit('update:value', '');
		}
	}
};
</script>

<style lang="scss"></style>
